module.exports = function(success, msg, result, res){
	console.log(msg);
	let response = {
		success: success,
		msg: msg,
		result: result
	}

	res.writeHead(200,{'Content-Type': 'application/json'});
	res.write(JSON.stringify(response));
	res.end();
}